﻿
<!--------------------------------------------------------知识选择器--课程----------------------------------------------------------------------->
<style type="text/css">
    .course_select_type{height: 32px; line-height: 30px; text-align: center; cursor: pointer;}
    .course_select_type .shareselect{color: #39f; border: 1px solid #39f;}
</style>
<section class="knowledge_kecheng_section">
				<div class="knowledgebase_selection_tool_sousuo ng-pristine ng-valid">
                    <div class="input-group">
                        <input type="text" id="key-text" class="form-control ng-pristine ng-untouched ng-valid" ng-model="paramsCourse.screenText" placeholder="请输入课程名称" ng-keyup="courseEnter($event)">
                        <span class="input-group-addon " ng-click="getListbyName()"><i class="iconfont"></i></span>
                    </div>
                </div>
                <!--<div style="" class="course_select_type"  ng-if="showShareCourse"  >
                  <span style="width: 50%; float: left;" ng-class="{shareselect:selectCourseType==1}" ng-click="changeCourseType(1)">企业课程</span>
                  <span style="width: 49%; float: right;"ng-class="{shareselect:selectCourseType==2}" ng-click="changeCourseType(2)">共享课程</span>
                </div>-->
                <div class="knowledgebase_selection_tool_main" ng-if="selectCourseType==1">
                	<div class="knowledgebase_selection_tool_main_check">
                		<div class="checkboxgrouptop">
							<div class="liebiaocheck-box" style="float:left;top:7px;left:0px;" ng-class="{selected: courseCount == courseList.length && courseList.length>0 }" ng-click="checkAll();$event.stopPropagation();" ng-if="knowConfig.kscMore">
                                    <!--添加selected为选中样式-->
                                    <span class="iconfont">&#xe67a;</span>
                            </div>		
                            <label style="float:left;padding-right:5px;" ng-if="knowConfig.kscMore">全选</label>
                            <ul style="flex-wrap: wrap;display: flex;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-flex-direction: row;-ms-flex-direction: row;flex-direction: row;float: left;">							
                            <!--需要遍历不然很丑-->
								<li style="border-radius: 3px;border: 1px solid #ccc;background-color: #;padding: 0px 25px 0 15px;margin-right: 5px;cursor: pointer;" ng-repeat="ns in nodeStructure.kssList">
										{{ns.knowledge_Name}}
										<div  class="close" style="top:2px;" ng-click="cStructureSerchClose()">
                                            <span>+</span>
                                        </div>                                        
                                </li>
							</ul>
							<div ng-click="openSingleStructure()" class="checkboxsx">
								<div class="checkboxsxtjtj">+</div>
							</div>
						</div>

                	</div>
                    <!--loading-->
                    <loading isloading="kscLoading" ng-if="kscLoading"></loading>                    
                    <!--遍历课程-->
                	<div class="knowledgebase_selection_tool_main_checkmain">
                		<ul class="person_listgroup">        
                            <!--空值-->
                            <li class="person_list_item"  ng-if="courseList.length <=0 && !kscLoading">
                                <center>
                                    <img src="/images/null.png" style="max-width:600px;"/>
                                </center>
                            </li>                
                			<li class="person_list_item" ng-repeat="cItem in courseList" ng-click="checkSingle(cItem);$event.stopPropagation();">
                                <div class="liebiaocheck-box" style="float:left;top:10px;left:0px;" ng-class="{selected:cItem.isSel}" >
                                    <!--添加selected为选中样式-->
                                    <span class="iconfont">&#xe67a;</span>
                                </div>								                                
								<label class="jrsj"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-lesson"></use></svg>{{cItem.course_Name}}</label>
							</li>
                		</ul>
                        <div ng-show="listmoreVisible" ng-click="loadMore()" class="renyuanmaore">
									点击加载更多
					</div>
                	</div>
                </div>
                <div class="knowledgebase_selection_tool_main" ng-if="selectCourseType==2">
                	<div class="knowledgebase_selection_tool_main_check">
                		<div class="checkboxgrouptop">
							<div class="liebiaocheck-box" style="float:left;top:7px;left:0px;" ng-class="{selected: shareCount == sharecourseList.length && sharecourseList.length>0 }" ng-click="checkShareAll();$event.stopPropagation();" ng-if="knowConfig.kscMore">
                                    <!--添加selected为选中样式-->
                                    <span class="iconfont">&#xe67a;</span>
                                    
                            </div>
                            <label style="float:left;padding-right:5px;" ng-if="knowConfig.kscMore">全选</label>		
						</div>

                	</div>
                    <!--loading-->
                    <loading isloading="kscLoading" ng-if="kscLoading"></loading>                    
                    <!--遍历课程-->
                	<div class="knowledgebase_selection_tool_main_checkmain">
                		<ul class="person_listgroup">        
                            <!--空值-->
                            <li class="person_list_item"  ng-if="sharecourseList.length <=0 && !kscLoading">
                                <center>
                                    <img src="/images/null.png" style="max-width:600px;"/>
                                </center>
                            </li>                
                			<li class="person_list_item" ng-repeat="cItem in sharecourseList" ng-click="checkShareSingle(cItem);$event.stopPropagation();">
                                <div class="liebiaocheck-box" style="float:left;top:10px;left:0px;" ng-class="{selected:cItem.isSel}" >
                                    <!--添加selected为选中样式-->
                                    <span class="iconfont">&#xe67a;</span>
                                </div>								                                
								<label class="jrsj"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-lesson"></use></svg>{{cItem.course_Name}}</label>
							</li>
                		</ul>
                        <div ng-show="sharemoreVisible" ng-click="loadMoreShare()" class="renyuanmaore">
									点击加载更多
					</div>
                	</div>
                </div>
			</section>
          
            <!--调用知识结构-->
            <knowledge-selector-structure-single  ng-if="nodeStructure.isShow" know-config="nodeStructure" on-callback="onStructureToCourseware()" ></knowledge-selector-structure-single>
